from django.urls import path
from rest_framework_simplejwt import views as JWTAuthenticationViews
from jwtdemo import views

urlpatterns = [
    path('api/token/', JWTAuthenticationViews.TokenObtainPairView.as_view(), name='get_token'),
    path('api/token/refresh/', JWTAuthenticationViews.TokenRefreshView.as_view(), name='refresh_token'),
    path('hello/', views.HelloView.as_view()),
    path('snippet/list/', views.SnippetListAPIView.as_view()),
    path('snippet/search/list/', views.SnippetSearchListAPIView.as_view()),
    path('snippet/order/list/', views.SnippetOrderListAPIView.as_view()),
    path('snippet/page/', views.SnippetPaginationListAPIView.as_view()),
    path('snippet/my/filter/', views.SnippetMyFilterListAPIView.as_view()),
    path('snippet/create/', views.SnippetCreateAPIView.as_view()),
    path('snippet/update/<int:pk>/', views.SnippetUpdateAPIView.as_view()),
    path('snippet/destroy/<int:pk>/', views.SnippetDestroyAPIView.as_view()),
]
